package com.teamin.entity;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户的实体类
 */
public class UserEntity implements Serializable{

    @ApiModelProperty(value = "用户ID")
    protected Long userId;

    @ApiModelProperty(value = "用户名称")
    protected String userName;

    @ApiModelProperty(value = "用户头像")
    protected String headIcon; //

    @ApiModelProperty(value = "用户创建时间")
    protected Date createTime;

    @ApiModelProperty(value = "所属公司")
    protected String company; 	//

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getHeadIcon() {
        return headIcon;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setHeadIcon(String headIcon) {
        this.headIcon = headIcon == null ? null : headIcon.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public UserEntity(Long userId, String userName, String headIcon, Date createTime, String company) {
        this.userId = userId;
        this.userName = userName;
        this.headIcon = headIcon;
        this.createTime = createTime;
        this.company = company;
    }

    public UserEntity() {
    }

    @Override
	public String toString() {
		return "UserEntity{" +
				"userId=" + userId +
				", username='" + userName + '\'' +
				", headIcon='" + headIcon + '\'' +
				", createTime=" + createTime +
				", company='" + company + '\'' +
				'}';
	}
}